﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Infrastructure;
using WsdShop.Model;
using WsdShop.Model.SearchModels;

namespace WsdShop.IService
{
    public interface IProductCategoryService
    {
        List<Product_Category> ProductCategoryManage(ProductCategorySearchModel search, out int total, out string parentName);

        bool ChangeCategoryState(int Id,int currentUserId);

        Result UpdateCategory(Product_Category model, int currentUserId);

        Result DelCategory(int Id, int currentUserId);

        List<Product_Category> GetProductCategoryList(int parentId);

        List<Product_Category> GetCategoryList();

        List<Product_Category> GetHotCategory();

        List<Product_Category> GetCategoryListForWap();

        int[] GetProductCategoryId(int[] ids);
    }
}
